
package Convertisseur;

import DataStorage.InfluenceDAOHibernate;
import HibernateSQLite.java.model.Influence;

public class CompareInfluence extends  VariableFlags{
	

	private InfluenceDAOHibernate influenceDao = new InfluenceDAOHibernate();
	
	@SuppressWarnings("unused")
	public String getValueOfInfluencing(String coupe, long InformationLigne_id){
		Influence influ = influenceDao.getInfluence(coupe, InformationLigne_id);
		String principal = RegexString.filterRestNumber(influ.getOP_principal());
		String influence_1 ="";
		String influence_2 ="";

		influence_1 =  RegexString.filterRestNumber(influ.getOP_influence_1());
		influence_2 =  RegexString.filterRestNumber(influ.getOP_influence_2());
		
		String value = "";
		if(!influence_1.contentEquals("") ){
			String tool1 = OP_Tool_Path.get(influence_1);
			
			value = influence_1+" "+influence_1+tool1;
		}
		if(!influence_2.contentEquals("") ){
			String tool2 = OP_Tool_Path.get(influence_2);
			value = value+", "+influence_2+" "+influence_2+tool2;
		}
		return value;
	}

}
